package com.vehicle_information_management_system.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vehicle_information_management_system.dto.TripCount;
import com.vehicle_information_management_system.dto.TripDto;
import com.vehicle_information_management_system.pojo.TripInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.vehicle_information_management_system.pojo.VehicleInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author huawei
* @description 针对表【trip_info】的数据库操作Service
* @createDate 2025-02-17 10:08:02
*/
public interface TripInfoService extends IService<TripInfo> {

    IPage<TripInfo> getTripList(Integer pageNum,Integer pageSize,String search);

    void update(TripInfo tripInfo);

    void add(TripInfo tripInfo);

    void delete(Integer id);

    //获取一个月的出行次数
    Integer getTripCountByMonth();

    IPage<TripDto> getTripListByUserId(Integer pageNum,Integer pageSize,Integer userId);

    List<TripCount> getTripCountByDepartment();
}
